using System;using System.Collections.Generic;using System.Text;
using DAL;
using Entity;namespace BUL{	public class DocumentBUL	{		private static DocumentDAL db = new DocumentDAL();		#region[Document_GetById]		public static List<Entity.Document> Document_GetById(string Id)		{			return db.Document_GetById(Id);		}		#endregion
        #region[Document_GetByTypeId]
        public static List<Entity.Document> Document_GetByTypeId(string TypeId, string Lang)
        {
            List<Entity.Document> list = new List<Entity.Document>();
            list = db.Document_GetByAll(Lang);
            return list.FindAll(obj => obj.TypeId == TypeId);
        }
        #endregion
        #region[Document_GetByIdOther]
        public static List<Entity.Document> Document_GetByIdOther(string Id, string TypeId, string Lang)
        {
            List<Entity.Document> list = new List<Entity.Document>();
            list = db.Document_GetByAll(Lang);
            return list.FindAll(obj => obj.TypeId == TypeId && obj.Id != Id && obj.Lang == Lang);
        }
        #endregion		#region[Document_GetByTop]		public static List<Entity.Document> Document_GetByTop(string Top, string Where, string Order)		{			return db.Document_GetByTop(Top, Where, Order);		}		#endregion		#region[Document_GetByAll]		public static List<Entity.Document> Document_GetByAll(string Lang)		{			return db.Document_GetByAll(Lang);		}		#endregion		#region[Document_Paging]		public static List<Entity.Document> Document_Paging(string CurentPage, string PageSize, string Lang)		{			return db.Document_Paging(CurentPage, PageSize, Lang);		}		#endregion		#region[Document_Insert]		public static bool Document_Insert(Document data)		{			return db.Document_Insert(data);		}		#endregion		#region[Document_Update]		public static bool Document_Update(Document data)		{			return db.Document_Update(data);		}		#endregion		#region[Document_Delete]		public static bool Document_Delete(string Id)		{			return db.Document_Delete(Id);		}		#endregion	}}